package com.codefish.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.codefish.entity.CapitalAccount;

import java.util.List;

/**
 * 账户信息
 *
 * @author codefish
 * @email cool_fish@aliyun.com
 * @date 2021-07-03 22:05:24
 */
public interface CapitalAccountService extends IService<CapitalAccount> {

    /**
     * 删除单个
     *
     * @param id
     * @return
     */
    boolean deleteOne(Integer id);

    /**
     * 查询所有
     *
     * @return
     * @param familyId
     */
    List<CapitalAccount> getAll(Integer familyId);

    /**
     * 新增单个
     *
     * @param capitalAccount
     * @return
     */
    int saveOne(CapitalAccount capitalAccount);

    /**
     * 确认是否可以新增或者是修改
     * @param capitalAccount
     * @return
     */
    boolean checkFlag(CapitalAccount capitalAccount);

    /**
     * 根据id批量查询
     * @param capitalAccountIds
     * @return
     */
    List<CapitalAccount> selectListByIds(List<Integer> capitalAccountIds);
}

